@extends('common.com')
@section('content')
<script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
  <script type="text/javascript" src="/ueditor/ueditor.all.js"></script>
<script type="text/plain" id="myEditor" style="width:500px;height:500px"></script>
<form class="form-horizontal" method="post" action="/admin">
<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
       
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">标题</label>
    <div class="col-sm-8">
      <input type="title" class="form-control" id="title" name="title"value="{{$data->title}}">
    </div>
  </div>


  <div class="form-group">
  <label for="inputEmail3" class="col-sm-2 control-label">内容</label>
    <script id="myidt" name="content" type="text/plain"style="width:930px;height:80px;padding-left:255px">
       <?php echo html_entity_decode($data->content)?>
      </script>
  </div>
  
    <script type="text/javascript">
        var ue = UE.getEditor('myidt',{
    	

	});
    </script>
   
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">修改</button>
    </div>
  </div>
</form>
@endsection